package org.bwgl.demo6.controller;

import org.springframework.web.bind.annotation.*;

@RestController
public class MyRestful {
    @GetMapping(value = "person")
    public String getPerson(){
        return "cha";
    }

    @PostMapping(value = "person")
    public String addPerson(){
        return "jia";
    }

    @PutMapping(value = "person")
    public String updatePerson(){
        return "gai";
    }

    @DeleteMapping(value = "person")
    public String deletePerson(){
        return  "shan";
    }
}
